@layout("/template/container.html",{bg:"bg-white",js:["/js/module/admin/sysUser/add.js"]}){
<form id="formContainer" lay-filter="formContainer" class="layui-form model-form">
	<div class="layui-form-item">
		<label class="layui-form-label">名称<span style="color: red;">*</span></label>
		<div class="layui-input-block">
			<input name="name" placeholder="请输入名称" type="text" class="layui-input" lay-verify="required" required/>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">账户<span style="color: red;">*</span></label>
		<div class="layui-input-block">
			<input name="username" placeholder="请输入登录账户" type="text" class="layui-input" lay-verify="required|username" required/>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">密码</label>
		<div class="layui-input-block">
			<input type="checkbox" id="url-switch" lay-skin="switch" lay-text="自定义|默认" lay-filter = "pwd-filter">
			<p style="color: red;">默认密码为： 123456</p>
		</div>
		<div class="layui-input-block hide" id="password-home">
			<input id="password" name="password" placeholder="密码" type="password" value="123456" class="layui-input" lay-verify="required|password" required/>
		</div>
		<div class="layui-input-block hide" id="password-to-home">
			<input id="passwordTo" placeholder="重复密码" type="password" class="layui-input" value="123456" lay-verify="required|passwordTo" required/>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label">邮箱</label>
		<div class="layui-input-block">
			<input name="email" placeholder="请输入邮箱" type="text" class="layui-input"/>
		</div>
	</div>
	@if(ShiroUtil.hasPermission("/admin/crm/toSelector")){
		<div class="layui-form-item" id="crm-selector-home">
			<label class="layui-form-label">分配后台</label>
			<div class="layui-input-block layui-hide">
				<input name="crmId" placeholder="后台id" type="text" class="layui-input"/>
			</div>
			<div class="layui-input-block">
				<input name="crmName" placeholder="后台名称" type="text" class="layui-input" onclick="system.openDataSelector('/admin/crm/toSelector' ,'crm-selector-home','后台选择')"/>
			</div>
		</div>
	@}
	<div class="layui-form-item text-right">
		<button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
		<button class="layui-btn" lay-filter="btnSubmit" lay-submit>保存</button>
	</div>
</form>
@}
